﻿using System.Linq;
using YXChatApiService.Repository;
using YXChatApiService.ServiceCollectionExtension;

namespace YXChatApiService.Core.Common
{
    public interface IDomainBaseManager<TEntity, TPrimaryKey>: ITransientDependency where TEntity:class
    {
        public IQueryable<TEntity> Query { get; }
        public IQueryable<TEntity> QueryAsNoTracking { get; }
        public Repository<TEntity, TPrimaryKey> Repo { get; }
    }
}